<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE HTML>

<html lang="zh-CN">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<title>${message.title }</title>
</head>
<body>
<h3 style="color:#474747">${message.title }</h3>
<span style="color:#b8b8b8"><fmt:formatDate pattern="yyyy-MM-dd" value="${message.createTime}" /></span>
<hr style="color:#d2d2d2"/>
<p>${message.content }</p>
</body>
<script type="text/javascript">
window.onload=function(){
	var clientWidth = document.documentElement.clientWidth;
	var formIMGs=document.getElementsByTagName("img");
	for(var i = 0;i<formIMGs.length;i++){
		var width = formIMGs[i].width;
		if(width > clientWidth){
			formIMGs[i].width = clientWidth-20;
		}
	}
}
</script>
</html>